<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
				xmlns:c="http://java.sun.com/jstl/core"
				xmlns:fmt="http://java.sun.com/jstl/fmt"
	  			xmlns:sf="http://www.springframework.org/tags/faces"
				template="/WEB-INF/layouts/standard.xhtml" >

<ui:define name="content">

<ui:fragment id="editFragment">
	<ui:fragment id="messages">
		<div id="messagesInsertionPoint">
			<h:messages errorClass="errors" />
		</div>
	</ui:fragment>
	<h:form id="f_score">
	<div align="center">
		<h3>Счет в матче</h3>
		<h4>
			<h:outputText value="#{match.matchdate}">
				<f:convertDateTime pattern="dd.MM.yyyy"/>
			</h:outputText>
			<br/>
			<h:outputText value="#{match.matchdate}">
				<f:convertDateTime pattern="HH:mm" timeZone="GMT+3"/>
			</h:outputText>
		</h4>
		<table border="0">
		<tr>
			<td align="center">
				<img src="${request.contextPath}/imageservlet?teamid=#{match.teamid1}"/>
			</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td align="center">
				<img src="${request.contextPath}/imageservlet?teamid=#{match.teamid2}"/>
			</td>
		</tr>
		<tr>
			<td align="center">
				<strong><h:outputText value="#{flowScope.teamname1}"/></strong>
			</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td align="center">
				<strong><h:outputText value="#{flowScope.teamname2}"/></strong>
			</td>
		</tr>
		<tr>
			<td align="center">
				<h:inputText size="1" value="#{match.score1}"/>
			</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td align="center">
				<h:inputText size="1" value="#{match.score2}"/>
			</td>
		</tr>
		</table>
		<div align="center">
			<br/>
			<sf:validateAllOnClick>
				<sf:commandButton id="save" action="save" processIds="*" value="Сохранить"/>&#160;
			</sf:validateAllOnClick> 
		</div>
	</div>		
	</h:form>
</ui:fragment>
</ui:define>
</ui:composition>